package com.ruoyi.ucar.common;

public enum ResultEnum {

    //通用响应码
    SUCCESS(200, "操作成功"),

    FAIL(310,"操作失败"),
    NOPARAM(306,"参数为空"),
    EXCELDATAERROR(307,"excel数据不合法，请参考模板上传"),
    FILEERROR(308,"上传文件不合法，请重新上传"),
    BATCHFILESNULL(309,"批量上传文件至少上传一个文件，请重新上传"),
    OCRERROR(310,"OCR识别错误"),

    SIGNNOPARAM(311,"签名参数为空"),

    CUSTOMERNODATA(312,"用户数据不存在"),

    CUSTOMERSIGNFAIL(313,"用户上传签名图片失败"),

    CUSTOMERNOSIGN(314,"用户缺少签名图片"),

    WXPAYAPIERROR(315,"微信支付接口调用错误"),

    ORDERNODATA(316,"订单数据不存在"),

    ORDERSIGNFAIL(317,"订单上传签名图片失败"),


    ORDERNOREPORT(318,"订单没有报告"),

    BRANDNOCARQUERY(319,"暂不支持该品牌车型查询"),

    WXPAYREFUND(320,"微信退款失败"),

    BRANDPRICEEXITS(321,"该品牌产品价格数据已添加"),

    CUSTOMERNOMONEY(322,"用户的余额和赠送金额为0"),

    CUSTOMERMONEYNOTENOUGH(323,"用户的余额和赠送金额不足，支付订单金额"),

    WXPAYWITHDRAW(324,"用户的余额不足，不允许提现"),
    CUSTOMERTBNOTENOUGH(325,"用户的总代理费用不足，无法转余额"),

    ORDERBACKWXPAY(326,"剩余退单金额，使用微信支付退款"),

    ORDERLIMITTIME(327,"订单已经超期失效了，请重新下单！"),

    WXPAYWITHDRAWERROR(328,"用户提现失败"),

    WXPAYWITHDRAWANGET(329,"用户的代理费不足，不允许提现"),


    ERROR(500, "服务器异常，请稍后再试"),
    PAYERROR(501, "微信支付失败"),
    NODATAERROR(503, "没有数据"),
    UCARQUERYNOPAYERROR(502, "订单支付状态必须是已支付状态，否则无法使用车辆查询功能"),
    UCARCOMMITNOPAYERROR(504, "订单支付状态必须是已支付状态，才允许上传报告");
    private int code;
    private String msg;
    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }


}
